<#assign doneStartUlTag=false>
<#if (actionErrors?exists && actionErrors?size > 0)>
	<div class = "errorContainer">
	<#assign doneStartUlTag=true>
	<#list actionErrors as error>
		<div class="errorMessage">${error}</div>
	</#list>
</#if>

<#if fieldErrors?exists>
	<#assign eKeys = fieldErrors.keySet()>
	<#assign eKeysSize = eKeys.size()>
	
	<#if (eKeysSize > 0)>
		<#if (!doneStartUlTag)>
			<div class = "errorContainer">
			<#assign doneStartUlTag=true>
		</#if>
		<#list eKeys as eKey>
			<#assign eValue = fieldErrors[eKey]>
			<#list eValue as eEachValue>
				<div class="errorMessage">${eEachValue}</div>
			</#list>
		</#list>		
	</#if>
</#if>
<#if (doneStartUlTag)>
	</div>
</#if>